<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>

        function salaryCount(param){
            var info = param.split('\n')
            var totalInfo = []
            for (var everyone of info){
                everyone = everyone.trim()
                var everyoneInfo = []
                for (var i of everyone.split(' ')){
                    if(i){
                        everyoneInfo.push(i)
                    }
                }
                totalInfo.push(everyoneInfo)
            }
            console.log(totalInfo)
            var salary_xiao_20000 = []
            var salary_da_20000 = []
            for (var i of totalInfo){
                if(Number(i[1]) >= 20000){
                    salary_da_20000.push(i[0])    
                }
                else{
                    salary_xiao_20000.push(i[0])
                }
            }
            console.log(salary_da_20000)
            console.log(salary_xiao_20000)
        }
        // var j = prompt('input something')
        // salaryCount(j)


        // 把2秒后要执行的代码放在这个定义的函数中
        function taskAfter2Second() {
          console.log("这里是等待2秒的后续代码");
        }
        
        setTimeout(   
          taskAfter2Second, 
          2000 // 2000毫秒，就是2秒
        )
        
        console.log("这里是设置后的代码");
    </script>
</head>
<body>
    
</body>
</html>